const mongoose = require('mongoose')

const schema = new mongoose.Schema({
    name: { type: String },
    retailPrice: { type: String },
    originalPrice: { type: String },
    unit: { type: String },
    brand: { type: String },
    intro: { type: String },
    JDprice: { type: String },
    TMprice: { type: String },
    referenceURL: { type: String},
    addTime: { type: Date },
    classify: { type: String },
    img: [{
        name: { type: String },
        url: { type: String },
        uid: { type: String }
    }],
    tag: [],
    num: { type: String }
})

module.exports = mongoose.model('Good', schema)